﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace Obra.Test.SmugMug
{
    /// <summary>
    /// Validate that all query parameters do not use true or false when 
    /// setting boolean values.
    /// </summary>
    class SmugMugUriQueryBooleanValidate :
          IHttpRequestValidate
    {
        #region IHttpRequestValidate Members

        public void Validate(System.Net.HttpListenerRequest request)
        {
            Assert.IsFalse(request.Url.ToString().Contains("=true"));
            Assert.IsFalse(request.Url.ToString().Contains("=false"));
        }

        #endregion
    }
}
